import IRegEmailSendCodeForm from '@/model/form/user/IRegEmailSendCodeForm'
import IResVO from '@/model/vo/common/IResVO'
import $http from '@/util/http'
import { AxiosResponse } from 'axios'

// 用户注册-通过邮箱-发送验证码
export default function regEmailSendCodeApi(form: IRegEmailSendCodeForm) {
  return $http.post<IResVO, AxiosResponse<IResVO>, IRegEmailSendCodeForm>(
    '/reg/email/sendCode',
    form
  )
}
